package com.kotlin.myapplication.mvp.model

import com.kotlin.myapplication.base.BasePresenter
import com.kotlin.myapplication.base.BaseView
import com.kotlin.myapplication.bean.*


/**
 *@lil
 *@创建时间 2019/10/30 10:15
 *@描述
 */

class CalentarContract {
    //数据监听接口 用于将数据和view绑定
    interface view : BaseView<Presonter> {

        fun showCalentarDay(calentarda: CalentarDayBean<CalentarDayResult<CalentarDayData>>)

        fun error(error: String)

        fun showWeather(weather: com.kotlin.myapplication.bean.Weather<WeatherResult<realtime>>)

        fun showNews(news: NewsBean<NewsResult<RepData>>)
    }

    //业务类接口 获取业务数据
    interface Presonter : BasePresenter {

        fun getCalentarDayData(date: String)

        fun getWeather(date: String)

        fun getNews(type: String)
    }

}